Skip to content

Use _REMOTE_USER when available - #264

Merged
Samruddhi Khandale (samruddhikhandale) merged 7 commits into
mainfrom
clantz/use-remote-user-env
Nov 28, 2022
Merged

Use _REMOTE_USER when available#264
Samruddhi Khandale (samruddhikhandale) merged 7 commits into
mainfrom
clantz/use-remote-user-env

Conversation

@Chuxel

Copy link
Copy Markdown
Member

This PR updates features to take advantage of the new _REMOTE_USER environment variable. It leaves the existing logic in place to handle older versions of the dev container CLI (and to try to be smart in the case when no remote user is set).

Priority is:

  1. USERNAME (if this was added as an option)
  2. _REMOTE_USER
  3. automatic - this is the final fallback to try to auto-detect and for back compat.

The PR also makes sure we are quoting inbound feature options to avoid spaces, newlines, etc causing problems.

@Chuxel
Chuck Lantz (Chuxel) requested a review from a team as a code owner November 8, 2022 18:48

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome. Thank you for the PR. ✨

Added a comment which should help fix the Python tests.
The failing oryx tests (jammy) are expected.

Comment thread src/python/install.sh Outdated
Comment thread src/python/install.sh Outdated
Chuck Lantz (Chuxel) and others added 2 commits November 8, 2022 11:13
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
Comment thread src/anaconda/install.sh
@Chuxel

Copy link
Copy Markdown
Member Author

Samruddhi Khandale (@samruddhikhandale) joshspicer Adapted to feedback.

@samruddhikhandale

Samruddhi Khandale (samruddhikhandale) commented Nov 28, 2022

Copy link
Copy Markdown
Member

Oops, I forgot this existed and created a duplicate #309 🤦‍♀️
This one does few other things as well, closing mine & reviewing this one now 👀

Comment thread src/php/install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants